/**
 * 
 */
package com.zzu.icukangfu.test;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

/**
 * @author teng
 * @time下午6:11:08
 * @corporation ttkj
 */
public class mytest {
	
	public static void main(String[] args) {
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date1 = null;
        Date date2 = null;
		try {
			date1 = simpleDateFormat.parse("2018-06-03 16:32:15");
			date2 = simpleDateFormat.parse("2018-06-03 22:32:15");
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        long ts1 = date1.getTime();
        long ts2 = date2.getTime();
        System.out.println((ts2-ts1)/1000);
        System.out.println(60*60*(22-16));
	}

}
